import { Component, OnInit } from '@angular/core'
import {DictService} from "@shared/utils/dict.service";

@Component({
  selector: 'app-tag-create-group',
  templateUrl: './tag-create-group.component.html',
  styleUrls: ['./tag-create-group.component.scss']
})
export class TagCreateGroupComponent implements OnInit {
  status = '';
  freq = '';
  sharerange = '';
  constructor(public dictService: DictService) {}
  ngOnInit() {}

  submit() {
    let data = {'tagAtrr':{}}
    if(this.status!=''){
      data['tagAtrr']['status'] =this.status
    }
    if(this.freq!=''){
      data['tagAtrr']['freq'] =this.freq
    }
    if(this.sharerange!=''){
      data['tagAtrr']['sharerange'] =this.sharerange
    }
    return data
  }
}
